package com.sudu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_video")
@ApiModel("视频实体类")
public class Video {
    @ApiModelProperty("视频vid")
    private int vid ;
    @ApiModelProperty("视频标题")
    private String title ;
    @ApiModelProperty("视频上传时间")
    @TableField(value = "create_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss" , timezone="GMT+8")
    private Date createTime ;
    @ApiModelProperty("视频上传者")
    @TableField(value = "create_by")
    private int createBy ;
    @ApiModelProperty("视频链接")
    private String path ;
    @ApiModelProperty("逻辑删除 ， 0表示删除")
    @TableField(value = "is_deleted")
    private int isDelete ;
    @ApiModelProperty("点击量")
    private int click ;
    @ApiModelProperty("视频分类")
    private int tag ;
    @ApiModelProperty("视频评论")
    private int comment ;
    @ApiModelProperty("视频封面链接")
    private String img ;



}
